<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>知果汇</title>
    <link href="__STATIC__/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/simple-line-icons.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/font-awesome.min.css" rel="stylesheet">
    <link href="__STATIC__/admin/css/jasny-bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/admin/css/nanoscroller.css">
    <link href="__STATIC__/admin/css/style.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/jquery-ui.css">
    <!--[if lt IE 9]>
    <script src="__STATIC__/admin/js/html5shiv.min.js"></script>
    <script src="__STATIC__/admin/js/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        body {
            background-color: #ffffff;
            min-width: 600px;
        }

        .row {
            margin-left: 0px;
            margin-right: 0px;
            min-width: 600px;
        }

        .form .row {
            margin-top: 5px;
        }

        p {
            margin: 0;
        }

        .form .row img {
            width: 128px;
            height: 128px;
            margin-bottom: 5px;
        }

        .formControls {
            padding-right: 10px;
        }

        .radio-box {
            display: inline-block;
            width: 64px;
        }

        .formControls {
            padding-right: 50px;
            position: relative;
        }

        .textarea {
            height: 100px;
            resize: none;
            font-size: 14px;
            padding: 4px;
        }

        .textarea-numberbar {
            position: absolute;
            right: 70px;
            bottom: 5px;
            z-index: 1;
            margin-bottom: 0;
        }
    </style>
</head>
<body>
<article class="page-container">
    <form class="form form-horizontal" id="form-admin-add">
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">头像：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <img id="image" src="">
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">用户名：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <p id="username"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">手机号码：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="phone"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">邮箱：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="email"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">性别：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="sex"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">生日：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="hday"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">月收入：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="monthly"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">教育程度：</label>
            <div class="formControls col-xs-9 col-sm-9 skin-minimal">
                <p id="education"></p>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">创建时间：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <p id="time"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">状态：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <p id="static"></p>
            </div>
        </div>
        <div class="row cl">
            <label class="form-label col-xs-3 col-sm-3">禁用原因：</label>
            <div class="formControls col-xs-9 col-sm-9">
                <p id="test"></p>
            </div>
        </div>
    </form>
</article>

<script src="__STATIC__/admin/js/jquery.min.js"></script>
<script src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script src="__STATIC__/admin/js/jasny-bootstrap.min.js"></script>
<script src="__STATIC__/admin/js/jquery.slimscroll.min.js"></script>
<script src="__STATIC__/admin/js/jquery.nanoscroller.min.js"></script>
<script src="__STATIC__/admin/js/metismenu.min.js"></script>
<script src="__STATIC__/admin/js/float-custom.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/laypage/laypage.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/laydata/laydate.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/getMyDate.js"></script>
<script type="text/javascript">
    var url = window.location.href;
    id = url.split("#")[1];
    $.ajax({
        type: "get",
        url: "{:url('api/member/member_msg')}",
        dataType: 'jsonp',
        jsonp: 'callback',
        data: {'uid': id},
        success: function (msg) {
            if (msg.code == 200) {
                var time = msg.data.time;
                ltime = getMyDate(time * 1000);

                var hday = msg.data.date;
                hday_time = getMyDate(hday * 1000);

                $('#image').attr("src","/Images/head/" + msg.data.head_img);
                $('#username').html(msg.data.username);
                $('#phone').html(msg.data.phone);
                $('#email').html(msg.data.email);
                
                $('#monthly').html(msg.data.salary);
                $('#education').html(msg.data.education);
                $('#time').html(ltime);
				
				if(hday_time == true){
					$('#hday').html(hday_time);
				}else{
					$('#hday').html('无');
				}
							
                $('#test').html(msg.data.test);
                if (msg.data.static == 1) {
                    $("#static").html('已启用')
                } else if (msg.data.static == 2) {
                    $("#static").html('已禁用')
                }
                if (msg.data.sex == 0) {
                    $('#sex').html('女');
                }else{
					$('#sex').html('男');
				}
            }
            if (msg.code == 1000) {
                layer.msg('获取信息不成功!', {icon: 5, time: 2000});
            }
        }
    });
</script>
</body>
</html>